#pragma once
#include "ModelLayerView.h"
class CDialogView :
	public CHoopsView
{
public:
	CDialogView(void);
	DECLARE_DYNCREATE( CDialogView)
public:
	virtual ~CDialogView(void);

public:
	void InitView();

public:
	virtual void OnPrepareDC(CDC* pDC, CPrintInfo* pInfo = NULL);
protected:
	virtual void OnDraw(CDC* pDC); 
	
public:
	virtual void OnInitialUpdate();  

#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

	DECLARE_MESSAGE_MAP()

	//get-set
public:
	HModelLayerModel * GetHoopsModel() const { return m_pHoopsModel; }
	void SetHoopsModel(HModelLayerModel * val) { m_pHoopsModel = val; }
	
public:

	void DrawView(CDC *pdc);	
	void DrawRectangle(CPoint LeftTop, CPoint RightBottom, COLORREF color,CDC *pDC);
	void SetWindowColor(COLORREF new_top_color, COLORREF new_bottom_color, bool emit_message = true);
	void DisplayRectangle(HPoint pStart,HPoint pEnd);
	

private:
	HModelLayerModel *m_pHoopsModel;	
public:
	CRectangleObj* m_pRectangle;
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	BOOL m_bMouseTrack;

};

